package net.butfly.bus.router;

import net.butfly.bus.config.Config;

public abstract class RouterBase implements Router {
	protected Config config;
	protected DirectoryPolicy directoryPolicy;
	protected RoutingPolicy routingPolicy;

	public RouterBase(Config config) {
		this.config = config;
		this.directoryPolicy = this.getDirectoryPolicy();
		this.routingPolicy = this.getRoutingPolicy();
	}

	protected abstract RoutingPolicy getRoutingPolicy();

	protected abstract DirectoryPolicy getDirectoryPolicy();

}
